import axios from '@/utils/request.js'

function filter(data) {
    return axios({
        url: '/api/orders/admin/filter',
        method: "post",
        data
    })
}


function edit(data) {
    return axios({
        url: '/api/orders/admin/edit',
        method: "post",
        data
    })
}


function all() {
    return axios({
        url: '/api/orders/admin/all',
        method: "post"
    })
}

function add(data) {
    return axios({
        url: '/api/orders/admin/add',
        method: "post",
        data
    })
}

export {all, edit,add,filter}